<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

class Collect extends Model
{
    protected $table = 'collect';
    protected $fillable = ['member_id','goods_id'];
    public function goods()
    {
        return $this->hasOne('App\Models\Good', 'id', 'goods_id');
    }
}